Counting Principles: Factorial, Permutations, and Combinations
Fundamental Principle of Counting
Counting Possibilities
In many situations, especially in probability and combinatorics, we need to determine the total number of possible outcomes or ways an event or a sequence of events can occur. The Fundamental Principle of Counting provides a basic and intuitive way to figure out the total number of possibilities when multiple independent choices or events are involved. It serves as the bedrock upon which more sophisticated counting techniques like permutations and combinations are built.
The Multiplication Principle
The Fundamental Principle of Counting is most often articulated as the Multiplication Principle.
Statement of the Multiplication Principle:
If a task consists of a sequence of two events, and the first event can be performed in $m$ different ways, and for each of these $m$ ways, the second event can be performed in $n$ different ways, then the total number of different ways the entire task can be performed (i.e., the number of ways both events can occur in this specific order) is the product $m \times n$.
This principle can be readily extended to a sequence involving any finite number of events. If a task involves $k$ sequential events, and the first event can occur in $n_1$ ways, the second event can occur in $n_2$ ways (regardless of how the first event occurred), the third event can occur in $n_3$ ways (regardless of how the first two events occurred), and so on, until the $k$-th event can occur in $n_k$ ways, then the total number of ways to perform the entire task (the sequence of all $k$ events) is the product of the number of ways for each individual event:
$$ \text{Total Number of Ways} = n_1 \times n_2 \times n_3 \times \ldots \times n_k $$Examples Using the Multiplication Principle
Let's apply the Multiplication Principle to solve some counting problems.
Example 1. A person has 3 different shirts (Red, Blue, Green) and 2 different pairs of trousers (Black, Grey). How many different outfits consisting of one shirt and one pair of trousers can the person create?
Answer:
Creating an outfit involves two events in sequence:
Event 1: Choosing a shirt. There are 3 different shirts available, so there are 3 ways to perform this event.
Event 2: Choosing a pair of trousers. There are 2 different pairs of trousers available, so there are 2 ways to perform this event.
According to the Multiplication Principle, the total number of different outfits is the product of the number of ways for each event:
$$ \text{Total number of outfits} = (\text{Number of ways to choose a shirt}) \times (\text{Number of ways to choose trousers}) $$ $$ \text{Total number of outfits} = 3 \times 2 = 6 $$The different outfits are: (Red Shirt, Black Trousers), (Red Shirt, Grey Trousers), (Blue Shirt, Black Trousers), (Blue Shirt, Grey Trousers), (Green Shirt, Black Trousers), (Green Shirt, Grey Trousers).
Answer: The person can create 6 different outfits.
Example 2. A student wants to arrange one book each from their collection of 3 different English books, 2 different Mathematics books, and 4 different Science books on a shelf. In how many ways can this be done, assuming the order of subjects is fixed (e.g., English, then Math, then Science)?
Answer:
The task involves a sequence of three events (choosing a book for each subject) in a specific order:
Event 1: Choose an English book. There are 3 different English books, so 3 ways.
Event 2: Choose a Mathematics book. There are 2 different Mathematics books, so 2 ways.
Event 3: Choose a Science book. There are 4 different Science books, so 4 ways.
Using the Multiplication Principle, the total number of ways to choose one book of each subject and place them in the specified order is the product of the number of ways for each choice:
$$ \text{Total number of arrangements} = (\text{Number of English book choices}) \times (\text{Number of Math book choices}) \times (\text{Number of Science book choices}) $$ $$ \text{Total number of arrangements} = 3 \times 2 \times 4 = 24 $$Answer: The student can arrange one book of each subject in 24 different ways.
Example 3. How many different 3-digit numbers can be formed using the digits $1, 2, 3, 4, 5$, assuming that digits can be repeated?
Answer:
A 3-digit number has three positions: the hundreds digit, the tens digit, and the units digit. Forming a 3-digit number involves making a choice for each position in sequence.
Event 1: Choose the hundreds digit. The available digits are $1, 2, 3, 4, 5$. There are 5 possible choices for the hundreds digit.
Event 2: Choose the tens digit. Since digits can be repeated, the available digits are still $1, 2, 3, 4, 5$. There are 5 possible choices for the tens digit.
Event 3: Choose the units digit. Since digits can be repeated, there are still $1, 2, 3, 4, 5$. There are 5 possible choices for the units digit.
Using the Multiplication Principle, the total number of different 3-digit numbers that can be formed is the product of the number of choices for each position:
$$ \text{Total number of 3-digit numbers} = (\text{# Hundreds choices}) \times (\text{# Tens choices}) \times (\text{# Units choices}) $$ $$ \text{Total number of 3-digit numbers} = 5 \times 5 \times 5 = 5^3 = 125 $$Answer: 125 different 3-digit numbers can be formed using the digits $1, 2, 3, 4, 5$ with repetition allowed.
The Addition Principle
While the Multiplication Principle deals with sequences of events, the Addition Principle applies when there are mutually exclusive choices or events. It is also considered part of the Fundamental Principle of Counting in a broader sense.
Statement of the Addition Principle:
If an event (let's call it Event A) can occur in $m$ different ways, and another event (Event B) can occur in $n$ different ways, and if these two events cannot occur at the same time (i.e., they are mutually exclusive or disjoint), then the total number of ways that *either* Event A *or* Event B can occur is the sum $m + n$.
Example: A student needs to choose one extra-curricular activity. They can choose from 3 options in sports or 4 options in music. If they must choose only one activity in total (either sports or music, not both), how many choices do they have?
Choosing a sport is one event (3 ways). Choosing a music activity is another event (4 ways). These two events are mutually exclusive because the student chooses *either* a sport *or* a music activity, but not both simultaneously. According to the Addition Principle, the total number of choices is $3 + 4 = 7$.
The Fundamental Principle of Counting, encompassing both the Multiplication and Addition Principles, forms the essential groundwork for systematically counting possibilities, which is vital in probability, permutations, and combinations.
Factorial Notation
Representing Products of Consecutive Integers
In counting problems, especially those dealing with arranging objects in a specific order (permutations), we often encounter expressions that are products of consecutive positive integers starting from 1. To simplify writing and working with such products, a special notation called factorial notation is used.
Definition of Factorial
The factorial of a non-negative integer $n$ is denoted by the symbol $n!$ and is read as "n factorial". For a positive integer $n$, it is defined as the product of all positive integers from 1 up to $n$.
For any positive integer $n$, the definition is:
$$ n! = n \times (n-1) \times (n-2) \times \ldots \times 3 \times 2 \times 1 $$For example, $5! = 5 \times 4 \times 3 \times 2 \times 1$.
By mathematical convention, the factorial of zero is defined as 1. This definition is essential for formulas involving factorials to work consistently, particularly in the context of combinations and permutations.
$0! = 1 $
(Definition of 0 Factorial)
Factorial is defined only for non-negative integers. It is not defined for negative integers or for non-integer values.
Examples of Factorial Calculations
Let's calculate the factorials for the first few non-negative integers:
- $0! = 1$ (by definition)
- $1! = 1$
- $2! = 2 \times 1 = 2$
- $3! = 3 \times 2 \times 1 = 6$
- $4! = 4 \times 3 \times 2 \times 1 = 24$
- $5! = 5 \times 4 \times 3 \times 2 \times 1 = 120$
- $6! = 6 \times 5 \times 4 \times 3 \times 2 \times 1 = 720$
- $7! = 7 \times 6! = 7 \times 720 = 5040$
As you can see, factorial values grow very rapidly as $n$ increases.
Properties and Applications of Factorials
Factorial notation has several useful properties and appears in various mathematical areas:
Recursive Relation: A key property of factorials is that for any positive integer $n$, the factorial of $n$ can be expressed as the product of $n$ and the factorial of $(n-1)$.
From the definition, $n! = n \times (n-1) \times (n-2) \times \ldots \times 2 \times 1$.
We can group the terms $(n-1) \times (n-2) \times \ldots \times 2 \times 1$, which is the definition of $(n-1)!$.
$n! = n \times (n-1)! \quad (\text{for } n \ge 1) $
(Recursive Property)
Example: $5! = 5 \times 4! = 5 \times 24 = 120$.
This property is also consistent with the definition $0! = 1$. If we apply the property for $n=1$: $1! = 1 \times (1-1)! = 1 \times 0!$. Since we know $1! = 1$, we must have $1 = 1 \times 0!$, which implies $0! = 1$.
Simplifying Expressions with Factorials: The recursive property is very useful for simplifying fractions or expressions involving factorials.
Example 1. Evaluate $\frac{8!}{6!}$.
Answer:
We can expand the factorials according to the definition:
$$ \frac{8!}{6!} = \frac{8 \times 7 \times 6 \times 5 \times 4 \times 3 \times 2 \times 1}{6 \times 5 \times 4 \times 3 \times 2 \times 1} $$Alternatively, using the recursive property, we can write $8!$ as $8 \times 7 \times 6!$:
$$ \frac{8!}{6!} = \frac{8 \times 7 \times (6!)}{6!} $$Now, we can cancel out the $6!$ term from the numerator and the denominator (since $6!$ is a common non-zero factor):
$$ \frac{\cancel{6!}}{\cancel{6!}} $$This leaves:
$$ = 8 \times 7 = 56 $$Answer: $\frac{8!}{6!} = 56$.
Example 2. Evaluate $\frac{n!}{(n-2)!}$ for $n \ge 2$.
Answer:
Use the recursive property to expand $n!$ until we reach $(n-2)!$:
$$ n! = n \times (n-1) \times (n-2) \times (n-3) \times \ldots \times 1 $$ $$ n! = n \times (n-1) \times [(n-2) \times (n-3) \times \ldots \times 1] $$ $$ n! = n \times (n-1) \times (n-2)! $$Now substitute this into the expression:
$$ \frac{n!}{(n-2)!} = \frac{n \times (n-1) \times (n-2)!}{(n-2)!} $$Cancel out the $(n-2)!$ term:
$$ = n(n-1) $$Provided $n-2 \ge 0$, i.e., $n \ge 2$.
Answer: $\frac{n!}{(n-2)!} = n(n-1)$ for $n \ge 2$.
- Counting Permutations and Combinations: Factorial notation is fundamental to the formulas for calculating permutations (arrangements) and combinations (selections).
- Series Expansions: Factorials appear in the denominators of the terms in many important infinite series expansions of functions, such as the Taylor and Maclaurin series for $e^x$, $\sin x$, $\cos x$, etc.
- Probability Theory: Factorials are used extensively in calculating probabilities in problems involving ordered or unordered selections.
Factorial notation is a crucial shorthand in combinatorics and serves as a building block for understanding concepts related to arrangements, selections, and series in algebra and beyond.
Permutations: Definition, Formula, and Types (Distinct/Identical Objects)
Arrangements of Objects
In combinatorics, we are often interested in counting the number of ways objects can be arranged or selected. A permutation specifically deals with the arrangement of objects where the order of the objects is important. If we change the order of the objects, we get a new permutation.
For example, if we have the letters A, B, and C, the possible permutations of these three letters taken all at once are ABC, ACB, BAC, BCA, CAB, and CBA. Each of these is a distinct permutation because the order of the letters is different.
Definition of Permutation
A permutation is a specific ordered arrangement of a set of objects. When we talk about permutations, we are interested in the number of ways to arrange a certain number of objects chosen from a larger collection, where the sequence or position of the chosen objects matters.
The number of permutations of $n$ distinct objects taken $r$ at a time refers to the number of different ordered arrangements that can be formed using $r$ objects selected from a set of $n$ unique objects. This is denoted by the symbol $P(n, r)$, $_nP_r$, or sometimes $P_r^n$.
The constraints on $n$ and $r$ are that $n$ must be a non-negative integer, and $r$ must be a non-negative integer such that $0 \le r \le n$. We can't arrange more objects than we have available.
Formula for Permutations of Distinct Objects
Let's derive the formula for the number of permutations of $n$ distinct objects taken $r$ at a time, denoted $P(n, r)$. This is the number of ways to fill $r$ ordered positions using objects from a set of $n$ distinct objects, without repetition of objects within the arrangement.
We can think of this as filling $r$ empty slots, one by one:
- For the first position, we have $n$ distinct objects to choose from. So there are $n$ ways to fill the first slot.
- After filling the first position, there are $n-1$ distinct objects remaining. So there are $n-1$ ways to fill the second slot.
- After filling the first two positions, there are $n-2$ distinct objects remaining. So there are $n-2$ ways to fill the third slot.
- This process continues until we fill the $r$-th position. The number of remaining objects for the $r$-th position is $n - (r-1) = n - r + 1$. So there are $n-r+1$ ways to fill the $r$-th slot.
By the Fundamental Principle of Counting (Multiplication Principle), the total number of ways to fill these $r$ ordered positions is the product of the number of choices for each position:
$$ P(n, r) = n \times (n-1) \times (n-2) \times \ldots \times (n-r+1) $$This product consists of $r$ terms. We can express this product using factorial notation. Recall that $n! = n \times (n-1) \times \ldots \times (n-r+1) \times (n-r) \times \ldots \times 1$. The terms from $(n-r)$ down to 1 are not included in our product for $P(n,r)$. We can divide $n!$ by $(n-r)!$ to cancel out these terms:
$$ P(n, r) = n \times (n-1) \times \ldots \times (n-r+1) $$ $$ P(n, r) = \frac{n \times (n-1) \times \ldots \times (n-r+1) \times (n-r) \times (n-r-1) \times \ldots \times 1}{(n-r) \times (n-r-1) \times \ldots \times 1} $$The numerator is $n!$, and the denominator is $(n-r)!$.
So, the formula for the number of permutations of $n$ distinct objects taken $r$ at a time is:
$P(n, r) = \frac{n!}{(n-r)!} \quad (\text{for } 0 \le r \le n) $
(Permutations of n distinct objects taken r at a time)
A special case is when $r=n$, which means we are arranging all $n$ distinct objects. The number of permutations of $n$ distinct objects taken $n$ at a time is:
$$ P(n, n) = \frac{n!}{(n-n)!} = \frac{n!}{0!} $$By the convention that $0! = 1$:
$$ P(n, n) = \frac{n!}{1} = n! $$So, the number of ways to arrange $n$ distinct objects in a line is $n!$.
Examples with Distinct Objects
Example 1. How many different ways can the letters of the word "CAT" be arranged?
Answer:
The word "CAT" consists of 3 distinct letters: C, A, T.
We want to arrange all 3 of these letters. So, we have $n=3$ distinct objects and we are taking $r=3$ of them to arrange.
The number of permutations is $P(3, 3)$, which is also $3!$ (number of ways to arrange 3 distinct objects).
$$ P(3, 3) = 3! = 3 \times 2 \times 1 = 6 $$The possible arrangements are: CAT, CTA, ACT, ATC, TCA, TAC. There are indeed 6 different arrangements.
Answer: The letters of the word "CAT" can be arranged in 6 different ways.
Example 2. From a group of 8 students, a president and a vice-president are to be chosen. In how many different ways can this be done?
Answer:
We have a set of 8 distinct students ($n=8$). We need to choose 2 students for specific positions (President and Vice-President), and the order matters (Student A as President and Student B as Vice-President is different from Student B as President and Student A as Vice-President). This is a permutation problem where we are taking $r=2$ students from $n=8$ distinct students and arranging them in positions.
The number of ways to do this is $P(8, 2)$.
Using the formula $P(n, r) = \frac{n!}{(n-r)!}$:
$$ P(8, 2) = \frac{8!}{(8-2)!} = \frac{8!}{6!} $$Expand $8!$ using the recursive property $n! = n \times (n-1)!$ until we reach $6!$:
$$ 8! = 8 \times 7 \times 6! $$ $$ P(8, 2) = \frac{8 \times 7 \times 6!}{6!} $$Cancel out $6!$ from the numerator and denominator:
$$ P(8, 2) = 8 \times 7 = 56 $$There are 56 different ways to choose a president and a vice-president from a group of 8 students.
Answer: There are 56 different ways.
Permutations with Identical Objects
When we need to find the number of distinct permutations of a set of objects where some of the objects are identical, the standard formula $\frac{n!}{(n-r)!}$ (or $n!$ if arranging all) cannot be used directly because swapping two identical objects does not create a new, distinct arrangement.
Consider a set of $n$ objects in total. Suppose these $n$ objects consist of $k$ different types of objects, where:
- There are $n_1$ identical objects of the first type.
- There are $n_2$ identical objects of the second type.
- ...
- There are $n_k$ identical objects of the $k$-th type.
And the total number of objects is the sum of the counts of each type: $n_1 + n_2 + \ldots + n_k = n$.
The number of distinct permutations of these $n$ objects (taken all at once) is given by the formula:
Number of distinct permutations $= \frac{n!}{n_1! n_2! \ldots n_k!} $
(Permutations with Identical Objects)
Rationale: If all $n$ objects were distinct, there would be $n!$ permutations. However, because there are $n_1$ identical objects of type 1, their $n_1!$ permutations among themselves in any arrangement are indistinguishable. We must divide by $n_1!$ to correct for this overcounting. Similarly, we divide by $n_2!$ for the identical objects of type 2, and so on, up to $n_k!$.
Example
Example 3. How many different arrangements can be made using the letters of the word "MISSISSIPPI"?
Answer:
The word "MISSISSIPPI" has a total of $n = 11$ letters.
Let's count the frequency of each distinct letter:
- The letter M appears 1 time ($n_M = 1$).
- The letter I appears 4 times ($n_I = 4$).
- The letter S appears 4 times ($n_S = 4$).
- The letter P appears 2 times ($n_P = 2$).
Check the total number of letters: $n_M + n_I + n_S + n_P = 1 + 4 + 4 + 2 = 11$, which matches the total number of letters in the word.
We use the formula for permutations with identical objects:
$$ \text{Number of distinct arrangements} = \frac{n!}{n_M! \, n_I! \, n_S! \, n_P!} $$ $$ = \frac{11!}{1! \times 4! \times 4! \times 2!} $$Calculate the factorials:
$$ 11! = 39,916,800 $$ $$ 1! = 1 $$ $$ 4! = 4 \times 3 \times 2 \times 1 = 24 $$ $$ 2! = 2 \times 1 = 2 $$Substitute these values into the formula:
$$ = \frac{39,916,800}{1 \times 24 \times 24 \times 2} $$ $$ = \frac{39,916,800}{1 \times 576 \times 2} $$ $$ = \frac{39,916,800}{1152} $$Perform the division:
$$ \frac{39916800}{1152} = 34,650 $$Answer: There are 34,650 different arrangements of the letters of the word "MISSISSIPPI".
Permutations are used in a wide range of problems where the order of selection or arrangement is critical, such as creating passwords, ranking items, scheduling events, or forming words from letters. The distinction between distinct and identical objects is crucial for applying the correct formula.
Combinations: Definition, Formula, and Important Results
Selections of Objects
In contrast to permutations, where the order of arrangement is crucial, a combination is a way of selecting objects from a set where the order of selection does not matter. We are interested in the group or subset of objects chosen, not the sequence in which they were picked.
For example, if we are choosing two students from a group of five to form a committee, selecting Student A then Student B results in the same committee as selecting Student B then Student A. Since the order doesn't change the resulting group, this is a combination problem.
Definition of Combination
A combination is formally defined as a selection of objects from a set where the order of selection is irrelevant. We are interested in the number of distinct subsets of a certain size that can be formed from a larger set of distinct objects.
The number of combinations of $n$ distinct objects taken $r$ at a time is the number of ways to choose a subset of $r$ objects from a set of $n$ distinct objects, without considering the order in which the objects are chosen. This is denoted by $C(n, r)$, $_nC_r$, $\binom{n}{r}$, or sometimes $C_r^n$.
The parameters $n$ and $r$ are non-negative integers, with $0 \le r \le n$. We are choosing a subset of size $r$ from a set of $n$ distinct items.
Formula for Combinations of Distinct Objects
The formula for calculating the number of combinations can be derived directly from the formula for permutations. Recall that a permutation of $n$ distinct objects taken $r$ at a time ($P(n, r)$) involves two successive steps:
- First, choosing $r$ objects from the $n$ distinct objects. The number of ways to do this is the definition of $C(n, r)$.
- Second, arranging these $r$ chosen objects in a specific order. The number of ways to arrange $r$ distinct objects is $r!$.
By the Fundamental Principle of Counting (Multiplication Principle), the total number of permutations of $n$ objects taken $r$ at a time is the product of the number of ways for these two steps:
$$ P(n, r) = C(n, r) \times r! $$Now, we can rearrange this equation to find the formula for $C(n, r)$ by dividing both sides by $r!$ (assuming $r! \neq 0$, which is true since $r \ge 0$):
$$ C(n, r) = \frac{P(n, r)}{r!} $$We already know the formula for permutations of distinct objects: $P(n, r) = \frac{n!}{(n-r)!}$. Substitute this formula into the expression for $C(n, r)$:
$$ C(n, r) = \frac{\frac{n!}{(n-r)!}}{r!} $$Dividing by $r!$ is the same as multiplying by $\frac{1}{r!}$:
$$ C(n, r) = \frac{n!}{(n-r)!} \times \frac{1}{r!} $$ $$ C(n, r) = \frac{n!}{r!(n-r)!} $$The formula for the number of combinations of $n$ distinct objects taken $r$ at a time ($0 \le r \le n$) is:
$C(n, r) = \frac{n!}{r!(n-r)!} $
(Combinations of n distinct objects taken r at a time)
This formula is read as "n choose r".
Let's examine some special cases:
- $C(n, 0)$: The number of ways to choose 0 objects from a set of $n$ distinct objects. $$ C(n, 0) = \frac{n!}{0!(n-0)!} = \frac{n!}{1 \times n!} = \frac{n!}{n!} = 1 $$ There is only one way to choose nothing from a set.
- $C(n, n)$: The number of ways to choose all $n$ objects from a set of $n$ distinct objects. $$ C(n, n) = \frac{n!}{n!(n-n)!} = \frac{n!}{n!0!} = \frac{n!}{n! \times 1} = \frac{n!}{n!} = 1 $$ There is only one way to choose everything from a set.
Examples with Distinct Objects
Example 1. In how many ways can a committee of 3 people be chosen from a group of 5 distinct people?
Answer:
This is a combination problem because the order in which the 3 people are selected for the committee does not change the composition of the committee. We have $n=5$ distinct people and we want to choose $r=3$ of them.
The number of ways to do this is $C(5, 3)$.
Using the formula $C(n, r) = \frac{n!}{r!(n-r)!}$:
$$ C(5, 3) = \frac{5!}{3!(5-3)!} = \frac{5!}{3!2!} $$Calculate the factorials: $5! = 120$, $3! = 6$, $2! = 2$.
$$ C(5, 3) = \frac{120}{6 \times 2} = \frac{120}{12} = 10 $$Alternatively, expand the factorials and cancel terms:
$$ C(5, 3) = \frac{5 \times 4 \times 3 \times 2 \times 1}{(3 \times 2 \times 1) \times (2 \times 1)} = \frac{5 \times 4}{2 \times 1} = \frac{20}{2} = 10 $$Or using the recursive property: $\frac{5!}{3!2!} = \frac{5 \times 4 \times \cancel{3!}}{\cancel{3!} \times 2!} = \frac{5 \times 4}{2} = 10$.
Answer: A committee of 3 people can be chosen from a group of 5 people in 10 different ways.
Example 2. How many different subsets of size 2 can be formed from the set $\{A, B, C, D\}$?
Answer:
A set is a collection of distinct elements where the order does not matter. We are choosing a subset of size 2 from a set of 4 distinct elements. This is a combination problem. We have $n=4$ distinct objects and we want to choose $r=2$ of them.
The number of ways to do this is $C(4, 2)$.
Using the formula $C(n, r) = \frac{n!}{r!(n-r)!}$:
$$ C(4, 2) = \frac{4!}{2!(4-2)!} = \frac{4!}{2!2!} $$Calculate the factorials: $4! = 24$, $2! = 2$.
$$ C(4, 2) = \frac{24}{2 \times 2} = \frac{24}{4} = 6 $$The possible subsets of size 2 are: $\{A, B\}, \{A, C\}, \{A, D\}, \{B, C\}, \{B, D\}, \{C, D\}$. There are 6 such subsets.
Answer: 6 different subsets of size 2 can be formed from the set $\{A, B, C, D\}$.
Important Results and Properties of Combinations
The combination formula $\binom{n}{r}$ has several useful properties:
Symmetry Property: $C(n, r) = C(n, n-r)$.
The number of ways to choose a group of $r$ objects from $n$ is equal to the number of ways to choose the group of $n-r$ objects that are left behind.
Proof: Using the formula for $C(n, r)$, let's calculate $C(n, n-r)$:
$$ C(n, n-r) = \frac{n!}{(n-r)!(n-(n-r))!} $$ $$ = \frac{n!}{(n-r)!(n-n+r)!} $$ $$ = \frac{n!}{(n-r)!r!} $$Since multiplication is commutative ($r!(n-r)! = (n-r)!r!$), this is the same as $C(n, r)$.
$$ C(n, n-r) = C(n, r) $$Example: $C(5, 2) = 10$. $C(5, 5-2) = C(5, 3) = \frac{5!}{3!2!} = \frac{120}{6 \times 2} = 10$. The property holds.
- $C(n, 0) = 1$ and $C(n, n) = 1$. (As derived earlier).
- $C(n, 1) = n$. The number of ways to choose 1 object from a set of $n$ is simply $n$.
Proof: $C(n, 1) = \frac{n!}{1!(n-1)!} = \frac{n \times (n-1)!}{1 \times (n-1)!} = n$.
Pascal's Identity: $C(n, r) + C(n, r-1) = C(n+1, r)$.
This identity shows how the numbers in Pascal's triangle are generated. It states that the number of ways to choose $r$ items from $n+1$ items is the sum of the number of ways to choose $r$ items from $n$ items (excluding one specific item) and the number of ways to choose $r-1$ items from $n$ items (which means including that one specific item and choosing $r-1$ more from the remaining $n$).
Proof: This can be proven using the factorial formula, but it's algebraically more involved than the symmetry proof.
Sum of Combinations: The sum of all possible combinations from choosing 0 items up to choosing $n$ items from a set of $n$ elements is equal to $2^n$.
$$ \sum_{r=0}^n C(n, r) = C(n, 0) + C(n, 1) + C(n, 2) + \ldots + C(n, n) = 2^n $$This is equal to the total number of subsets (including the empty set and the set itself) that can be formed from a set containing $n$ distinct elements.
Connection to Binomial Theorem: This result is also obtained from the Binomial Theorem, which states that $(x+y)^n = \sum_{r=0}^n \binom{n}{r} x^{n-r} y^r$. Setting $x=1$ and $y=1$, we get $(1+1)^n = \sum_{r=0}^n \binom{n}{r} (1)^{n-r} (1)^r$, which simplifies to $2^n = \sum_{r=0}^n \binom{n}{r}$.
Combinations are widely used in scenarios where the formation of groups or subsets is involved and the order of selection does not impact the outcome, such as selecting teams, choosing lottery numbers, determining probabilities in card games, or selecting ingredients for a recipe.
Applications of Permutations and Combinations (Division into Groups, Distribution)
Permutations and combinations are fundamental concepts in combinatorics and probability theory. They provide systematic methods for counting the number of ways to arrange or select objects, which is essential for solving problems in various fields, including statistics, computer science, finance, and science.
Permutations are used when the order of objects matters, while combinations are used when the order does not matter. Let's explore some common applications of these concepts.
Applications of Permutations
Permutations are applied in situations where the sequence or the specific order of the chosen objects is important. The key question is "How many ways to arrange/order $r$ items out of $n$?"
Common Applications of Permutations:
- Arrangement of Objects in a Line or Specific Positions: Counting the number of distinct ways to arrange a set of distinct objects, or a subset of objects, in a linear order or into designated positions.
Example: How many ways can 5 distinct books be arranged on a shelf? This is arranging all 5 distinct items: $P(5, 5) = 5! = 5 \times 4 \times 3 \times 2 \times 1 = 120$ ways.
Example: How many ways can the top 3 finishers be determined in a race with 8 participants? This is selecting 3 participants out of 8 and ordering them for 1st, 2nd, and 3rd place: $P(8, 3) = \frac{8!}{(8-3)!} = \frac{8!}{5!} = 8 \times 7 \times 6 = 336$ ways.
- Forming Numbers or Words from Digits or Letters: Counting the number of distinct numbers that can be formed using a set of digits, where the order of the digits creates a different number (e.g., 123 is distinct from 321). Similarly, counting the number of distinct "words" or arrangements of letters from a given set of letters.
Example: How many different 3-digit numbers can be formed using the digits 1, 2, 3, 4 if no digit is repeated? This is arranging 3 out of 4 distinct digits: $P(4, 3) = \frac{4!}{(4-3)!} = \frac{4!}{1!} = 24$ ways.
- Sequencing Tasks or Events: Counting the number of possible orders in which a series of tasks or events can be performed.
Example: A manager needs to assign 5 different tasks to 5 different employees. In how many different orders can the tasks be assigned? This is arranging 5 distinct tasks: $P(5, 5) = 5! = 120$ ways.
- Ranking or Ordering: Counting outcomes where the specific rank or position of each item is important.
Example Application of Permutation
Example 1. How many different 4-digit numbers can be formed using the digits $1, 2, 3, 4, 5, 6$ if no digit is repeated?
Answer:
We are forming a 4-digit number using digits from the set $\{1, 2, 3, 4, 5, 6\}$. The set contains $n=6$ distinct digits. We need to choose 4 of these digits and arrange them in the hundreds, tens, and units places to form a 4-digit number. The order of the digits is important (e.g., 1234 is a different number from 1243 or 4321).
This is a problem of finding the number of permutations of 6 distinct objects taken 4 at a time, denoted as $P(6, 4)$.
Using the formula $P(n, r) = \frac{n!}{(n-r)!}$:
$$ P(6, 4) = \frac{6!}{(6-4)!} = \frac{6!}{2!} $$Calculate the factorials: $6! = 6 \times 5 \times 4 \times 3 \times 2 \times 1 = 720$, $2! = 2 \times 1 = 2$.
$$ P(6, 4) = \frac{720}{2} = 360 $$Alternatively, using the definition $P(n, r) = n \times (n-1) \times \ldots \times (n-r+1)$: We are filling 4 places with 6 options for the first, 5 for the second, 4 for the third, and 3 for the fourth.
$$ P(6, 4) = 6 \times 5 \times 4 \times 3 = 360 $$Answer: 360 different 4-digit numbers can be formed using the digits $1, 2, 3, 4, 5, 6$ without repetition.
Applications of Combinations
Combinations are applied in situations where we are selecting a group or a subset of objects, and the order in which the objects are selected does not matter. The key question is "How many ways to choose/select $r$ items out of $n$?"
Common Applications of Combinations:
- Formation of Committees or Teams: Counting the number of ways to select a group of people for a committee, a team, or any other group where positions are not distinct.
Example: Choosing a committee of 4 members from a group of 10 people. The order of selection doesn't matter: $C(10, 4) = \frac{10!}{4!6!} = \frac{10 \times 9 \times 8 \times 7}{4 \times 3 \times 2 \times 1} = 10 \times 3 \times 7 = 210$ ways.
- Selection of Items from a Collection: Counting the number of ways to choose a certain number of items from a larger collection without regard to the order.
Example: Selecting 3 books to read from a list of 7 books. The order you pick them doesn't matter for which books you end up with: $C(7, 3) = \frac{7!}{3!4!} = \frac{7 \times 6 \times 5}{3 \times 2 \times 1} = 35$ ways.
- Forming Subsets: Counting the number of subsets of a given size from a set. The definition of $C(n, r)$ is precisely the number of subsets of size $r$ from a set of $n$ elements.
- Card Games: Calculating the number of possible hands in card games, as the order in which you receive cards does not matter for the composition of your hand.
Example: Number of possible 5-card poker hands from a standard deck of 52 cards: $C(52, 5) = \frac{52!}{5!47!} = 2,598,960$ ways.
- Geometry Problems: Counting the number of lines, triangles, squares, etc., that can be formed by selecting points from a given set of points.
Example: How many distinct lines can be drawn through 7 points, no three of which are collinear? To form a line, you need to choose 2 points. The order doesn't matter: $C(7, 2) = \frac{7!}{2!5!} = \frac{7 \times 6}{2 \times 1} = 21$ lines.
Example Application of Combination
Example 2. A bag contains 5 red balls and 3 blue balls. In how many ways can 2 red balls and 1 blue ball be selected?
Answer:
This problem involves making two independent selections: one selection of red balls and one selection of blue balls. The order of selecting balls within the red group or within the blue group does not matter, nor does the order in which you choose from the red or blue groups first. This is a combination problem for each selection.
- Selection 1: Choose 2 red balls from the 5 available red balls. The number of ways is $C(5, 2)$.
- Selection 2: Choose 1 blue ball from the 3 available blue balls. The number of ways is $C(3, 1)$.
By the Fundamental Principle of Counting (Multiplication Principle), since both selections must occur to fulfill the condition, the total number of ways to select 2 red balls AND 1 blue ball is the product of the number of ways for each selection.
$$ \text{Total number of ways} = (\text{Ways to choose 2 red balls}) \times (\text{Ways to choose 1 blue ball}) $$ $$ \text{Total number of ways} = C(5, 2) \times C(3, 1) $$Calculate $C(5, 2)$:
$$ C(5, 2) = \frac{5!}{2!(5-2)!} = \frac{5!}{2!3!} = \frac{5 \times 4 \times \cancel{3!}}{(2 \times 1) \times \cancel{3!}} = \frac{5 \times 4}{2} = \frac{20}{2} = 10 $$Calculate $C(3, 1)$:
$$ C(3, 1) = \frac{3!}{1!(3-1)!} = \frac{3!}{1!2!} = \frac{3 \times \cancel{2!}}{1 \times \cancel{2!}} = \frac{3}{1} = 3 $$Now, multiply the number of ways for each selection:
$$ \text{Total number of ways} = 10 \times 3 = 30 $$Answer: There are 30 ways to select 2 red balls and 1 blue ball from the bag.
Applications involving Division into Groups or Distribution
A specific category of counting problems involves dividing a set of distinct items into groups of predetermined sizes, or distributing distinct items among distinct recipients. These problems often require the use of combinations.
Example: Dividing $n$ distinct items into two groups of sizes $r$ and $n-r$.
Suppose you have $n$ distinct items and want to divide them into two groups, one of size $r$ and the other of size $n-r$.
- First, choose $r$ items for the first group from the $n$ items. The number of ways to do this is $C(n, r)$.
- The remaining $n-r$ items automatically form the second group. There is only $C(n-r, n-r) = 1$ way to choose these remaining items.
So, the number of ways to divide $n$ distinct items into two groups of size $r$ and $n-r$ is $C(n, r) \times C(n-r, n-r) = C(n, r) \times 1 = C(n, r) = \frac{n!}{r!(n-r)!}$.
However, there's a subtlety: does the order of the groups matter? For instance, is dividing into Group A (size $r$) and Group B (size $n-r$) different from dividing into Group B (size $n-r$) and Group A (size $r$)?
- If the groups are distinguishable (e.g., giving one group to Person 1 and the other to Person 2, or forming a "left pile" and a "right pile" where the piles are different by position), then the number of ways is indeed $C(n, r)$.
- If the groups are indistinguishable (e.g., simply dividing into two piles of size $r$ and $n-r$ without assigning them to specific locations or people), and the group sizes are the same ($r = n-r = n/2$), then the two groups are interchangeable. We have counted every division twice (once as {Group1, Group2} and once as {Group2, Group1}). In this case, we must divide the result by $2!$ to correct for this double counting. The number of ways is $\frac{C(n, n/2)}{2!}$. If the group sizes are different ($r \neq n-r$), the groups are inherently distinguishable by their size, and we don't divide by $2!$.
Example
Example 3. In how many ways can 10 distinct books be divided equally between 2 students?
Answer:
We need to divide 10 distinct books into two groups of size $10/2 = 5$ each. The groups are being given to 2 students, say Student A and Student B. Since Student A and Student B are distinct individuals, the group of books given to Student A is distinct from the group of books given to Student B. Thus, the groups are distinguishable.
We can think of this as:
- Choose 5 books for the first student (say, Student A) from the 10 distinct books. The number of ways is $C(10, 5)$.
- The remaining $10 - 5 = 5$ books must go to the second student (Student B). There is only $C(5, 5) = 1$ way to choose these remaining books for Student B.
By the Multiplication Principle, the total number of ways to divide the books between the 2 specific students is the product of the number of ways for each step:
$$ \text{Total ways} = C(10, 5) \times C(5, 5) $$ $$ \text{Total ways} = \frac{10!}{5!(10-5)!} \times 1 = \frac{10!}{5!5!} $$Calculate $C(10, 5)$:
$$ C(10, 5) = \frac{10 \times 9 \times 8 \times 7 \times 6 \times \cancel{5!}}{5 \times 4 \times 3 \times 2 \times 1 \times \cancel{5!}} $$ $$ C(10, 5) = \frac{10 \times 9 \times 8 \times 7 \times 6}{120} $$$$ C(10, 5) = \frac{\cancel{10}^{1} \times \cancel{9}^{3} \times \cancel{8}^{2} \times 7 \times \cancel{6}^{1}}{\cancel{5}_{1} \times \cancel{4}_{1} \times \cancel{3}_{1} \times \cancel{2}_{1} \times \cancel{1}_{1}} = 1 \times 3 \times 2 \times 7 \times 1 = 252 $$
So, the total number of ways is $252 \times 1 = 252$.
If the question had asked to divide 10 distinct books into two unspecified groups of 5 books each, we would divide by $2!$ because the order of the two groups doesn't matter: $\frac{C(10, 5)}{2!} = \frac{252}{2} = 126$. But giving them to two specific students makes the groups distinct by recipient.
Answer: The books can be divided equally between the 2 students in 252 ways.
Understanding when to use permutations (order matters) versus combinations (order doesn't matter) and how to handle situations involving identical objects or group divisions is key to successfully solving a wide range of counting problems.